package com.hxx.sbMyBatis.config.springtransaction;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.sql.DataSource;

@Configuration
public class TransactionConfig {

    @Bean
    public TransactionEngine transactionEngine(DataSource dataSource) {
        return new TransactionEngine(dataSource);
    }
}
